package net.message;

import net.Synchronizer;
import net.Sender;
import net.Client;
import net.message.processor.IMessageProcessor;

public class AliveMessage implements Message{

    public AliveMessage(byte[] source){
    }

    public AliveMessage(){
    }

    @Override
    public byte[] toByteArray(){
        return new byte[]{};
    }

    @Override
    public MessageType getType(){
        return MessageType.ALIVE_MESSAGE;
    }


    @Override
    public void accept(IMessageProcessor processor, Client client){
        processor.process(this, client);
    }

    public void process(Synchronizer synchronizer, Sender sender, Client client){
        synchronizer.confirm(client);
    }

}
